#ifndef __UICOMMONWND__H__
#define __UICOMMONWND__H__

#include <MZFCLIB.h>

#include	"iUiButton.h"
#include	"UiStatusBar.h"

typedef enum _tagCommonWndBtnDisplay
{
	COMMON_WND_TIME_MODE = 0,
	COMMON_WND_SCREEN_UP,
	COMMON_WND_SCREEN_CONTENT,
	COMMON_WND_SCREEN_DOWN,
	COMMON_WND_STANDBY_UP,
	COMMON_WND_STANDBY_CONTENT,
	COMMON_WND_STANDY_DOWN,
	MAX_COMMON_WND_BTN,
} COMMON_WND_BTN;

typedef enum _tagCommonWndStaticDisplay
{
	COMMON_WND_STATIC_TIME = 0,
	COMMON_WND_STATIC_SCREEN,
	COMMON_WND_STATIC_STANDBY,
	MAX_COMMON_WND_STATIC,
} COMMON_WND_STATIC;

class UiCommonWnd :
	public UiWin
{
public:
	UiCommonWnd();
	~UiCommonWnd();

	BOOL InitUiWin(void);

	void PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);
	virtual int OnLButtonDown(UINT fwKeys, int xPos, int yPos);
	virtual int OnLButtonUp(UINT fwKeys, int xPos, int yPos);
	virtual void DeleteImages();

	void LoadiInterItem();
	BOOL InitImages();
public:
	iUiButton m_BtnCommonWnd[MAX_COMMON_WND_BTN];
	UiStatic	m_StaticCommonWnd[MAX_COMMON_WND_STATIC];
	ImagingHelper	*m_CommonWndBG;

	HDC				m_hBakDC;
	HBITMAP			m_hBitmapBakDC;
public:
	void UpdateLanguage();
};

#endif